<template>
  <div style="width: 100%;">
    <t-form :data="formData" :rules="rules" ref="form" label-align="top">
      <t-form-item label="推荐等级" name="hot_level">
        <t-rate v-model="formData.hot_level" />
      </t-form-item>
      <t-form-item label="虚拟浏览数" name="virtual_browse">
        <t-input-number v-model="formData.virtual_browse" theme="column" style="width: 100%;" placeholder="请输入虚拟浏览数"></t-input-number>
      </t-form-item>
      <t-form-item label="虚拟租赁数" name="virtual_rent">
        <t-input-number v-model="formData.virtual_rent" theme="column" style="width: 100%;" placeholder="请输入虚拟租赁数"></t-input-number>
      </t-form-item>
      <t-form-item label="虚拟销量" name="virtual_sales">
        <t-input-number v-model="formData.virtual_sales" theme="column" style="width: 100%;" placeholder="请输入虚拟销量"></t-input-number>
      </t-form-item>
    </t-form>
  </div>
</template>
<script>

export default {
  name: 'MarketingSettings',
  props: {
    value: {
      type: String,
      default: ''
    },
  },
  data() {
    return {
      editorOption: {},
      formData: {
        hot_level: 0, // 推荐等级
        virtual_rent: '', // 租赁数
        virtual_browse: '', // 浏览数
        virtual_sales: '', // 虚拟销量
      },
      rules: {
        //hot_level: [{required: true, message: '请输入推荐等级', trigger: 'change'},],
        //virtual_rent: [{required: true, message: '请输入租赁数', trigger: 'change'},],
        //virtual_browse: [{required: true, message: '请输入浏览数', trigger: 'change'},],
        //virtual_sales: [{required: true, message: '请输入虚拟销量', trigger: 'change'},],
      }
    }
  },
  mounted() {
  },
  methods: {
    submit() {
      return  this.$refs.form.validate()
    }

  }
}
</script>

<style lang="less" scoped>

</style>
